﻿//-----------------------------------------------------------------------
// <copyright file="SearchPaneQueryChangedEventArgs.cs" company="In The Hand Ltd">
//     Copyright © 2013-14 In The Hand Ltd. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace InTheHand.ApplicationModel.Search
{
    /// <summary>
    /// Provides data for a <see cref="SearchPane.QueryChanged"/> event that is associated with a <see cref="SearchPane"/> object.
    /// </summary>
    public sealed class SearchPaneQueryChangedEventArgs
    {
        internal SearchPaneQueryChangedEventArgs(string queryText)
        {
            Language = System.Globalization.CultureInfo.CurrentUICulture.TwoLetterISOLanguageName;
            QueryText = queryText;
        }

        /// <summary>
        /// The Internet Engineering Task Force (IETF) language tag (BCP 47 standard) that identifies the language currently associated with the user's text input device. 
        /// </summary>
        public string Language { get; internal set; }

        // public Windows.ApplicationModel.Search.SearchPaneQueryLinguisticDetails LinguisticDetails { get; internal set; }

        /// <summary>
        /// The text in the search box when the <see cref="SearchPane.QueryChanged"/> event fired.
        /// </summary>
        public string QueryText { get; internal set; }
    }
}
